package com.itheima.stock.api;

import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.OptionVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author 李智勇
 * @data 2025/11/13 20:10
 */

@RequestMapping("/api/test")
public interface TestControllerAPI {
    @GetMapping(path = "/get")
    ResponseResult<String> get(String name);

    @PostMapping(path = "/post")
    ResponseResult<OptionVO> post(@RequestBody OptionVO vo);

    @PutMapping(path = "/put")
    ResponseResult<OptionVO> put(@RequestBody OptionVO vo);

    @DeleteMapping(path = "/delete/{id}")
    ResponseResult<String> delete(@PathVariable(value = "id") String id);
}
